package com.db.log.parser;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Field implements Comparable<Field> {

	private int group;
	
	private String name;

	private boolean key;
	
	private String format;
	
	
	public int getGroup() {
		return group;
	}

	public void setGroup(int group) {
		this.group = group;
	}

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	public boolean isKey() {
		return key;
	}

	public void setKey(boolean key) {
		this.key = key;
	}

	
	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	
	@Override
	public int compareTo(Field other) {
		return this.getName().compareToIgnoreCase(other.getName());
	}

}
